#include <stdio.h>

void SetPixel(int x, int y)
{
    printf("%d,%d;", x, y);
}
//中点画圆法
void MidpointCircle(int r, int a, int b)
{
    int x, y;
    float d;
    x = 0;
    y = r;
    d = 1.25 - r;
    SetPixel(x + a, y + b);
    SetPixel(x + a, -y + b);
    SetPixel(-x + a, y + b);
    SetPixel(-x + a, -y + b);
    SetPixel(y + a, x + b);
    SetPixel(y + a, -x + b);
    SetPixel(-y + a, x + b);
    SetPixel(-y + a, -x + b);
    while (x < y)
    {
        if (d < 0)
        {
            d += 2 * x + 3;
            x++;
        }
        else
        {
            d += 2 * (x - y) + 5;
            x++;
            y--;
        }
        SetPixel(x + a, y + b);
        SetPixel(x + a, -y + b);
        SetPixel(-x + a, y + b);
        SetPixel(-x + a, -y + b);
        SetPixel(y + a, x + b);
        SetPixel(y + a, -x + b);
        SetPixel(-y + a, x + b);
        SetPixel(-y + a, -x + b);
    }
}

void drawThickCircle(int r, int a, int b,int d){
    for (int R = r; R < r + d; R++)
    {
        MidpointCircle(R, a, b);
    }
}

int main()
{
    
    drawThickCircle(200,250,250,10);
    getchar();
    return 0;
}